Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Coverage] Const-ize MCDCRecordProcessor stuff #78918

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Conversation

chapuni
Copy link
Contributor

@chapuni chapuni commented Jan 21, 2024

The life of MCDCRecordProcessor's instance is short. It may accept const objects to process.

On the other hand, the life of MCDCBranches is shorter than Record. It may be rewritten with reference, rather than copying.

The life of `MCDCRecordProcessor`'s instance is short.
It may accept `const` objects to process.

On the other hand, the life of `MCDCBranches` is shorter than `Record`.
It may be rewritten with reference, rather than copying.
@chapuni chapuni requested a review from evodius96 January 21, 2024 23:29
@evodius96
Copy link
Contributor

LGTM. I'm OK with these changes. However, I refactored the MappedRegions loop in llvm-cov, which will conflict with these changes. Not a big deal, though. I can either just fix that or roll these changes in with it.

@chapuni chapuni merged commit fe0ec2c into llvm:main Jan 22, 2024
3 of 4 checks passed
@chapuni chapuni deleted the mcdc/const branch January 23, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants